import QtQuick
import QtQuick.Window

Window
{
    width: 640
    height: 480
    visible: true
    title:  "Hello World"

    Item
    {
        width: 100
        height: 100
        clip: true
        anchors.centerIn: parent
        Rectangle
        {
            width: 100
            height: 100
            color: "red"
            radius: 20
            y: 20 // 裁剪掉了下面两个圆角
        }
    }

    Rectangle
    {
        id: rect1
        width: 100
        height: 100
        color: "red"
        anchors.centerIn: parent
        radius: 20 // 20个像素的圆角
        topLeftRadius: 10 // 左上角的圆角
    }
}